package com.zy.springbootmybatis.service.Impl;


import com.zy.springbootmybatis.bean.TAdmin;
import com.zy.springbootmybatis.mapper.TAdminMapper;
import com.zy.springbootmybatis.service.TAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import java.beans.Transient;


@Service
@Transactional(readOnly = true)
public class TAdminServiceImpl implements TAdminService {

    @Autowired
    TAdminMapper adminMapper;



    /**
     * @param id
     * @return
     */
//    @Transactional(isolation = Isolation.DEFAULT)
  //  @Transactional(readOnly = true)
    @Override
    public TAdmin selectByPrimaryKey(Integer id) {
        TAdmin admin = adminMapper.selectByPrimaryKey(id);
        return admin;
    }

}
